package com.huarui.sale.model;

import java.math.BigDecimal;
import java.util.Date;
import org.ewaf.framework.model.BaseDataObject;

/**
 * 销售单
 * 
 * @author Administrator
 * 
 */
public class Sale extends BaseDataObject {

	private static final long serialVersionUID = -713383448014210425L;

	/**
	 * 新建
	 */
	public static final String STATUS_NEW = "-1";

	/**
	 * 草稿
	 */
	public static final String STATUS_CREATE = "0";

	/**
	 * 待仓库发货
	 */
	public static final String STATUS_SUBMIT = "1";

	/**
	 * 已发货
	 */
	public static final String STATUS_DELIVERY = "2";

	/**
	 * 作废
	 */
	public static final String STATUS_INVALID = "3";
	/**
	 * 主键　
	 */
	private Integer id;
	/**
	 * 卖方
	 */
	private Integer sellerId;

	/**
	 * 买方
	 */
	private Integer buyerId;
	/**
	 * 买方在卖方系统中的客户ID
	 */
	private Integer partnerIdBySeller;
	/**
	 * 订单id
	 */
	private Integer ordersId;
	/**
	 * 卖方的单据号(卖方单据号在卖方接受单据后产生,从买方来看这个是一个受理号)
	 */
	private String codeOfSeller;
	/**
	 * 总金额
	 */
	private BigDecimal amount;
	/**
	 * 状态(0=草稿，1=已提交，2=已发货)
	 */
	private String status;

	/**
	 * 创建人
	 */
	private Integer creatorId;
	/**
	 * 创建时间
	 */
	private Date gmtCreate;
	/**
	 * 提交者ID
	 */
	private Integer submitter;
	/**
	 * 提交时间
	 */
	private Date gmtSubmit;
	/**
	 * 发货者id
	 */
	private Integer deliveryerId;
	/**
	 * 发货时间
	 */
	private Date gmtDelivery;
	/**
	 * -- 实际发货时间(手工输入)
	 */
	private Date gmtRealDelivery;
	/**
	 * 卖方备注
	 */
	private String memoOfSeller;

	private Integer areaId;
	/**
	 * 省份名称
	 */
	private String province;
	/**
	 * 城市名称
	 */
	private String city;
	/**
	 * 城区名称
	 */
	private String district;
	/**
	 * 详细地址
	 */
	private String street;
	/**
	 * 邮编
	 */
	private String postCode;
	/**
	 * 收货人
	 */
	private String receiverName;

	private String phone;

	private String mobile;

	/**
	 * 运输类型
	 */
	private String transportType;

	/**
	 * 支付方式
	 */
	private String paymentType;

	private Integer workFlowId;

	private Integer currentorId;

	public Sale() {

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSellerId() {
		return sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	public Integer getBuyerId() {
		return buyerId;
	}

	public void setBuyerId(Integer buyerId) {
		this.buyerId = buyerId;
	}

	public Integer getPartnerIdBySeller() {
		return partnerIdBySeller;
	}

	public void setPartnerIdBySeller(Integer partnerIdBySeller) {
		this.partnerIdBySeller = partnerIdBySeller;
	}

	public Integer getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(Integer ordersId) {
		this.ordersId = ordersId;
	}

	public String getCodeOfSeller() {
		return codeOfSeller;
	}

	public void setCodeOfSeller(String codeOfSeller) {
		this.codeOfSeller = codeOfSeller;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getSubmitter() {
		return submitter;
	}

	public void setSubmitter(Integer submitter) {
		this.submitter = submitter;
	}

	public Date getGmtSubmit() {
		return gmtSubmit;
	}

	public void setGmtSubmit(Date gmtSubmit) {
		this.gmtSubmit = gmtSubmit;
	}

	public Integer getDeliveryerId() {
		return deliveryerId;
	}

	public void setDeliveryerId(Integer deliveryerId) {
		this.deliveryerId = deliveryerId;
	}

	public Date getGmtDelivery() {
		return gmtDelivery;
	}

	public void setGmtDelivery(Date gmtDelivery) {
		this.gmtDelivery = gmtDelivery;
	}

	public Date getGmtRealDelivery() {
		return gmtRealDelivery;
	}

	public void setGmtRealDelivery(Date gmtRealDelivery) {
		this.gmtRealDelivery = gmtRealDelivery;
	}

	public String getMemoOfSeller() {
		return memoOfSeller;
	}

	public void setMemoOfSeller(String memoOfSeller) {
		this.memoOfSeller = memoOfSeller;
	}

	public Integer getAreaId() {
		return areaId;
	}

	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTransportType() {
		return transportType;
	}

	public void setTransportType(String transportType) {
		this.transportType = transportType;
	}

	public String getPaymentType() {
		return paymentType;
	}

	public void setPaymentType(String paymentType) {
		this.paymentType = paymentType;
	}

	public Integer getWorkFlowId() {
		return workFlowId;
	}

	public void setWorkFlowId(Integer workFlowId) {
		this.workFlowId = workFlowId;
	}

	public Integer getCurrentorId() {
		return currentorId;
	}

	public void setCurrentorId(Integer currentorId) {
		this.currentorId = currentorId;
	}

}
